package com.qingyouchuxing.order.api.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 0:已取消
 * 1:下单中
 * 2:已完成
 */
@Getter
@AllArgsConstructor
public enum OrderStatus {
    CANCELLED(-1,"已取消"),
    ORDERING(0,"下单中"),
    DONE(1,"已完成"),
    ;
    @EnumValue
    @JsonValue
    private final Integer code;
    private final String des;

}
